package com.nuoniu.sibanyun.entity.crm.call;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 客户管理-外呼账单
 * </p>
 *
 * @author 白强
 * @since 2022-05-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("crm_call_bill")
@ApiModel(value="CrmCallBill对象", description="客户管理-外呼账单")
public class CrmCallBill extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "账单金额")
    @TableField("order_amount")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "账单总时长")
    @TableField("order_minutes")
    private Integer orderMinutes;

    @ApiModelProperty(value = "年份")
    @TableField("year")
    private String year;

    @ApiModelProperty(value = "月份")
    @TableField("month")
    private String month;

    @ApiModelProperty(value = "商品ID")
    @TableField("crm_goods_id")
    private Integer crmGoodsId;

    @ApiModelProperty(value = "商品名称")
    @TableField("crm_goods_name")
    private String crmGoodsName;

    @ApiModelProperty(value = "月低费（元/月）")
    @TableField("base_charges")
    private BigDecimal baseCharges;

    @ApiModelProperty(value = "固定分钟数")
    @TableField("base_minutes")
    private Integer baseMinutes;

    @ApiModelProperty(value = "超出部分费率(元/分钟)")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "套餐内分钟数")
    @TableField("base_minutes_used")
    private Integer baseMinutesUsed;

    @ApiModelProperty(value = "超出分钟")
    @TableField("other_minutes")
    private Integer otherMinutes;

    @ApiModelProperty(value = "生单时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "结算时间")
    @TableField("settlement_time")
    private LocalDateTime settlementTime;

    @ApiModelProperty(value = "状态 0：未结清  1：已结清")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "叠加包总时长")
    @TableField("overlay_package_minutes")
    private Integer overlayPackageMinutes;

    @ApiModelProperty(value = "叠加包总费用")
    @TableField("overlay_package_amount")
    private BigDecimal overlayPackageAmount;


}
